/*
1:安装插件  npm i pinia
2:pinia实例化与挂载mian.js
   import {createPinia} from 'pinia'
   createApp(App).use(createPinia())
3:store/modules/模块名.js
   import {defineStore} from 'pinia'
   export default defineStore('模块名/user',{
    state,actions,getters   // 没有mutations,state(){return {}}

   })
4:页面上的使用
    import useUser from './store/modules/user.js'
      const user=useUser()
*/
import useCount from './modules/count'
import useUser from './modules/user'
export default function () {
  return {
    count: useCount(),
    user: useUser()
  }
}
